package com.kommii.test;

import java.io.IOException;

public class Base64Helper {
	/* public static String encode(byte[] byteArray) {
	        sun.misc.BASE64Encoder base64Encoder = new sun.misc.BASE64Encoder();
	        return base64Encoder.encode(byteArray);
	    }

	    public static byte[] decode(String base64EncodedString) {
	        sun.misc.BASE64Decoder base64Decoder = new sun.misc.BASE64Decoder();
	        try {
	            return base64Decoder.decodeBuffer(base64EncodedString);
	        } catch (IOException e) {
	            return null;
	        }
	    }
	    
	    public static void main(String[] args){
	    	String str = "12345645043";
	    	byte[] by = str.getBytes();
	    	String temp = encode(by);
	    	System.out.println(temp);
	    	byte[] by2 = decode(temp);
	    	String temp2 = new String(by2);
	    	System.out.println(temp2);
	    }
	    */


}
